package api

type Client interface {
	Visit()
	Close()
}

type RequestParam struct {
	Sleep           int32 // 用于模拟正常请求还是慢请求
	StatusCode      int32 // HTTP专属，设置返回状态码
	RequestByteNum  int32
	ResponseByteNum int32
}

type ProtocolClient interface {
	Request(param RequestParam)
}

var (
	MiddlewareClients = make(map[string]Client)
	ProtocolClients   = make(map[string]Client)
	HttpClient        ProtocolClient
)
